<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>集合的定义 - 全部关联题目</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.8/dist/chart.umd.min.js"></script>

    <!-- Tailwind 配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#36CBCB',
                        accent: '#FF7D00',
                        neutral: '#F5F7FA',
                        'neutral-dark': '#4E5969',
                        success: '#00B42A',
                        warning: '#FF7D00',
                        danger: '#F53F3F',
                    },
                    fontFamily: {
                        inter: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>

    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .scrollbar-hide {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .scrollbar-hide::-webkit-scrollbar {
                display: none;
            }
            .question-card {
                transition: all 0.3s ease;
            }
            .question-card:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            }
        }
    </style>
</head>
<body class="bg-gray-50 font-inter text-gray-800 min-h-screen flex flex-col">
    <!-- 顶部导航栏 -->
    <header class="bg-white shadow-sm sticky top-0 z-50 transition-all duration-300">
        <div class="container mx-auto px-0 py-3 flex items-center justify-between">
            <div class="flex items-center space-x-2">
                <button id="sidebar-toggle" class="lg:hidden text-gray-500 hover:text-primary transition-colors">
                    <i class="fa fa-bars text-xl"></i>
                </button>
                <h1 class="text-xl font-bold text-primary flex items-center">
                    <i class="fa fa-book mr-2"></i>
                    <span>睿途题库</span>
                </h1>
            </div>

            <div class="hidden md:flex items-center space-x-6">
                <!-- 控制面板 -->
                <div class="relative group">
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors flex items-center">
                        <i class="fa fa-tachometer mr-1"></i> 控制面板
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-dashboard mr-2"></i> 仪表盘
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-chart-line mr-2"></i> 数据概览
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-tasks mr-2"></i> 任务管理
                            </a>
                        </div>
                    </div>
                </div>

                <!-- 教材管理 -->
                <div class="relative group">
                    <a href="#" class="text-gray-600 font-medium border-b-2 border-primary pb-1 flex items-center">
                        <i class="fa fa-book mr-1"></i> 教材管理
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-list mr-2"></i> 版本管理
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-sitemap mr-2"></i> 章节管理
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-lightbulb-o mr-2"></i> 知识点管理
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-primary bg-primary/10 font-medium">
                                <i class="fa fa-exchange mr-2"></i> 版本对比
                            </a>
                        </div>
                    </div>
                </div>

                <!-- 题库管理 -->
                <div class="relative group">
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors flex items-center">
                        <i class="fa fa-database mr-1"></i> 题库管理
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-question-circle mr-2"></i> 题目管理
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-tags mr-2"></i> 标签管理
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-filter mr-2"></i> 筛选规则
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-upload mr-2"></i> 批量导入
                            </a>
                        </div>
                    </div>
                </div>

                <!-- 组卷系统 -->
                <div class="relative group">
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors flex items-center">
                        <i class="fa fa-files-o mr-1"></i> 组卷系统
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-magic mr-2"></i> 智能组卷
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-edit mr-2"></i> 手动组卷
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-copy mr-2"></i> 试卷模板
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-history mr-2"></i> 历史试卷
                            </a>
                        </div>
                    </div>
                </div>

                <!-- 数据分析 -->
                <div class="relative group">
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors flex items-center">
                        <i class="fa fa-bar-chart mr-1"></i> 数据分析
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-chart-pie mr-2"></i> 学习分析
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-chart-bar mr-2"></i> 成绩统计
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-chart-line mr-2"></i> 趋势分析
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-file-text mr-2"></i> 报告生成
                            </a>
                        </div>
                    </div>
                </div>

                <!-- 系统设置 -->
                <div class="relative group">
                    <a href="#" class="text-gray-600 hover:text-primary transition-colors flex items-center">
                        <i class="fa fa-cog mr-1"></i> 系统设置
                        <i class="fa fa-angle-down ml-1 text-xs"></i>
                    </a>
                    <div class="absolute top-full left-0 mt-1 w-48 bg-white shadow-lg rounded-lg border border-gray-200 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50">
                        <div class="py-2">
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-users mr-2"></i> 用户管理
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-shield mr-2"></i> 权限设置
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-database mr-2"></i> 数据备份
                            </a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 hover:text-primary transition-colors">
                                <i class="fa fa-cogs mr-2"></i> 系统配置
                            </a>
                        </div>
                    </div>
                </div>
            </div>

            <div class="flex items-center space-x-4">
                <div class="relative">
                    <input type="text" placeholder="搜索教材、章节或知识点..."
                           class="pl-10 pr-4 py-2 rounded-full bg-gray-100 focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all w-40 lg:w-64">
                    <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
                </div>

                <div class="relative">
                    <button class="text-gray-500 hover:text-primary transition-colors">
                        <i class="fa fa-bell text-xl"></i>
                        <span class="absolute -top-1 -right-1 bg-danger text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span>
                    </button>
                </div>

                <div class="flex items-center space-x-2 cursor-pointer group">
                    <img src="https://picsum.photos/id/64/40/40" alt="用户头像" class="w-8 h-8 rounded-full object-cover border-2 border-transparent group-hover:border-primary transition-all">
                    <span class="hidden md:inline font-medium">张老师</span>
                    <i class="fa fa-angle-down text-gray-400 group-hover:text-primary transition-colors"></i>
                </div>
            </div>
        </div>
    </header>

    <div class="flex flex-1 overflow-hidden">
        <!-- 左侧边栏 - 教材版本与章节导航 -->
        <aside id="sidebar" class="w-75 bg-white shadow-md transform -translate-x-full lg:translate-x-0 fixed lg:static h-full z-40 transition-transform duration-300 ease-in-out overflow-y-auto scrollbar-hide">
            <div class="p-4 border-b">
                <div class="flex items-center justify-between mb-3">
                    <h2 class="font-bold text-lg">教材版本导航</h2>
                    <div class="relative">
                        <select class="appearance-none bg-gray-100 rounded-lg px-3 py-1 pr-8 focus:outline-none focus:ring-1 focus:ring-primary">
                            <option>全部学科</option>
                            <option selected>数学</option>
                            <option>物理</option>
                            <option>化学</option>
                            <option>生物</option>
                        </select>
                        <i class="fa fa-chevron-down absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 pointer-events-none"></i>
                    </div>
                </div>

                <div class="relative">
                    <input type="text" placeholder="搜索章节..."
                           class="w-full pl-8 pr-4 py-2 rounded-lg bg-gray-100 focus:outline-none focus:ring-1 focus:ring-primary">
                    <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
                </div>
            </div>

            <!-- 教材版本选择 -->
            <div class="p-4 border-b">
                <h3 class="font-medium text-sm text-gray-500 mb-2">选择教材版本</h3>
                <div class="space-y-2">
                    <div class="relative">
                        <select id="version-selector" class="w-full appearance-none bg-gray-100 rounded-lg px-3 py-2 pr-8 focus:outline-none focus:ring-1 focus:ring-primary">
                            <option value="RJ-2023" selected>人教版 2023版</option>
                            <option value="SX-2022">苏教版 2022版</option>
                            <option value="BS-2023">北师大版 2023版</option>
                            <option value="HK-2024">沪科版 2024版</option>
                        </select>
                        <i class="fa fa-chevron-down absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 pointer-events-none"></i>
                    </div>
                </div>
            </div>

            <!-- 章节树形导航 -->
            <div class="p-4">
                <div class="flex items-center justify-between mb-3">
                    <h3 class="font-medium text-sm text-gray-500">章节结构</h3>
                    <div class="flex space-x-1">
                        <button id="expand-all" class="text-xs text-gray-500 hover:text-primary">展开</button>
                        <span class="text-gray-300">|</span>
                        <button id="collapse-all" class="text-xs text-gray-500 hover:text-primary">收起</button>
                    </div>
                </div>

                <div class="space-y-1">
                    <!-- 章节1 -->
                    <div class="chapter-item">
                        <div class="flex items-center justify-between cursor-pointer hover:bg-gray-50 rounded-lg p-2 transition-colors">
                            <div class="flex items-center">
                                <i class="fa fa-book text-primary mr-2"></i>
                                <span class="font-medium">第一章 集合与常用逻辑用语</span>
                            </div>
                            <i class="fa fa-angle-down text-gray-400 transition-transform"></i>
                        </div>

                        <div class="pl-6 mt-1 space-y-1">
                            <div class="section-item">
                                <div class="flex items-center justify-between cursor-pointer hover:bg-gray-50 rounded-lg p-2 transition-colors">
                                    <div class="flex items-center">
                                        <i class="fa fa-bookmark-o text-secondary mr-2"></i>
                                        <span>1.1 集合的含义与表示</span>
                                    </div>
                                    <span class="text-xs bg-blue-100 text-blue-600 px-2 py-0.5 rounded-full">4课时</span>
                                </div>

                                <div class="pl-6 mt-1 space-y-1 tree-line">
                                    <div class="knowledge-item bg-primary/5 border-l-2 border-primary p-2 rounded-r-lg cursor-pointer hover:bg-primary/10 transition-colors">
                                        <div class="flex items-center justify-between">
                                            <div class="flex items-center">
                                                <i class="fa fa-dot-circle-o text-primary mr-2"></i>
                                                <span>集合的定义</span>
                                            </div>
                                            <span class="text-xs text-gray-500">8题</span>
                                        </div>
                                    </div>

                                    <div class="knowledge-item hover:bg-gray-50 p-2 rounded-lg cursor-pointer transition-colors">
                                        <div class="flex items-center justify-between">
                                            <div class="flex items-center">
                                                <i class="fa fa-dot-circle-o text-gray-400 mr-2"></i>
                                                <span>集合的表示方法</span>
                                            </div>
                                            <span class="text-xs text-gray-500">5题</span>
                                        </div>
                                    </div>

                                    <div class="knowledge-item hover:bg-gray-50 p-2 rounded-lg cursor-pointer transition-colors">
                                        <div class="flex items-center justify-between">
                                            <div class="flex items-center">
                                                <i class="fa fa-dot-circle-o text-gray-400 mr-2"></i>
                                                <span>元素与集合的关系</span>
                                            </div>
                                            <span class="text-xs text-gray-500">4题</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </aside>

        <!-- 主内容区 -->
        <main class="flex-1 overflow-y-auto bg-gray-50 p-4 lg:p-6">
            <div class="container mx-auto">
                <!-- 面包屑导航 -->
                <div class="flex items-center text-sm text-gray-500 mb-4">
                    <a href="#" class="hover:text-primary">首页</a>
                    <i class="fa fa-angle-right mx-2 text-gray-300"></i>
                    <a href="#" class="hover:text-primary">教材版本管理</a>
                    <i class="fa fa-angle-right mx-2 text-gray-300"></i>
                    <a href="#" class="hover:text-primary">人教版 2023版</a>
                    <i class="fa fa-angle-right mx-2 text-gray-300"></i>
                    <a href="#" class="hover:text-primary">第一章 集合与常用逻辑用语</a>
                    <i class="fa fa-angle-right mx-2 text-gray-300"></i>
                    <a href="#" class="hover:text-primary">集合的定义</a>
                    <i class="fa fa-angle-right mx-2 text-gray-300"></i>
                    <span class="text-primary font-medium">全部关联题目</span>
                </div>

                <!-- 内容标题区 -->
                <div class="flex flex-col md:flex-row md:items-center justify-between mb-6">
                    <div>
                        <h2 class="text-[clamp(1.5rem,3vw,2rem)] font-bold text-gray-800">集合的定义 - 全部关联题目</h2>
                        <p class="text-gray-500 mt-1">共8道关联题目，涵盖不同题型和难度级别</p>
                    </div>

                    <div class="flex flex-wrap gap-3 mt-4 md:mt-0">
                        <button class="bg-primary text-white px-4 py-2 rounded-lg hover:bg-primary/90 transition-colors flex items-center">
                            <i class="fa fa-plus mr-2"></i> 添加新题目
                        </button>
                        <button class="bg-white border border-gray-300 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-50 transition-colors flex items-center">
                            <i class="fa fa-download mr-2"></i> 导出题目
                        </button>
                        <button class="bg-white border border-gray-300 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-50 transition-colors flex items-center">
                            <i class="fa fa-random mr-2"></i> 随机组卷
                        </button>
                    </div>
                </div>

                <!-- 统计概览 -->
                <div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-6">
                    <div class="bg-white rounded-xl shadow-sm p-4">
                        <p class="text-gray-500 text-sm mb-1">总题数</p>
                        <div class="flex items-end">
                            <span class="text-2xl font-bold text-gray-800">8</span>
                            <span class="text-green-500 text-xs ml-2 mb-1"><i class="fa fa-arrow-up"></i> 2道新增</span>
                        </div>
                    </div>

                    <div class="bg-white rounded-xl shadow-sm p-4">
                        <p class="text-gray-500 text-sm mb-1">选择题</p>
                        <div class="flex items-center">
                            <span class="text-2xl font-bold text-gray-800">3</span>
                            <span class="text-gray-400 text-xs ml-2">37.5%</span>
                        </div>
                    </div>

                    <div class="bg-white rounded-xl shadow-sm p-4">
                        <p class="text-gray-500 text-sm mb-1">填空题</p>
                        <div class="flex items-center">
                            <span class="text-2xl font-bold text-gray-800">2</span>
                            <span class="text-gray-400 text-xs ml-2">25.0%</span>
                        </div>
                    </div>

                    <div class="bg-white rounded-xl shadow-sm p-4">
                        <p class="text-gray-500 text-sm mb-1">解答题</p>
                        <div class="flex items-center">
                            <span class="text-2xl font-bold text-gray-800">3</span>
                            <span class="text-gray-400 text-xs ml-2">37.5%</span>
                        </div>
                    </div>
                </div>

                <!-- 筛选工具栏 -->
                <div class="bg-white rounded-xl shadow-sm p-4 mb-6">
                    <div class="flex flex-wrap items-center gap-4">
                        <div class="flex items-center">
                            <span class="text-gray-600 mr-2">题型：</span>
                            <div class="flex flex-wrap gap-2">
                                <button class="px-3 py-1 bg-primary text-white text-sm rounded-full">全部</button>
                                <button class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">选择题</button>
                                <button class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">填空题</button>
                                <button class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">解答题</button>
                                <button class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">判断题</button>
                            </div>
                        </div>

                        <div class="flex items-center">
                            <span class="text-gray-600 mr-2">难度：</span>
                            <div class="flex flex-wrap gap-2">
                                <button class="px-3 py-1 bg-primary text-white text-sm rounded-full">全部</button>
                                <button class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">
                                    <span class="inline-block w-2 h-2 rounded-full bg-green-500 mr-1"></span>基础
                                </button>
                                <button class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">
                                    <span class="inline-block w-2 h-2 rounded-full bg-yellow-500 mr-1"></span>中等
                                </button>
                                <button class="px-3 py-1 bg-gray-100 text-gray-700 text-sm rounded-full hover:bg-gray-200 transition-colors">
                                    <span class="inline-block w-2 h-2 rounded-full bg-red-500 mr-1"></span>较难
                                </button>
                            </div>
                        </div>

                        <div class="flex items-center ml-auto">
                            <span class="text-gray-600 mr-2">排序：</span>
                            <div class="relative">
                                <select class="appearance-none bg-gray-100 rounded-lg px-3 py-1 pr-8 text-sm focus:outline-none focus:ring-1 focus:ring-primary">
                                    <option>难度递增</option>
                                    <option>难度递减</option>
                                    <option>最新添加</option>
                                    <option>使用频率</option>
                                </select>
                                <i class="fa fa-chevron-down absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 pointer-events-none"></i>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 难度分布图表 -->
                <div class="bg-white rounded-xl shadow-sm p-6 mb-6">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="font-bold text-lg">题目难度分布</h3>
                        <div class="flex items-center space-x-2">
                            <div class="flex items-center">
                                <span class="inline-block w-3 h-3 rounded-full bg-green-500 mr-1"></span>
                                <span class="text-sm text-gray-600">基础 (4题)</span>
                            </div>
                            <div class="flex items-center">
                                <span class="inline-block w-3 h-3 rounded-full bg-yellow-500 mr-1"></span>
                                <span class="text-sm text-gray-600">中等 (3题)</span>
                            </div>
                            <div class="flex items-center">
                                <span class="inline-block w-3 h-3 rounded-full bg-red-500 mr-1"></span>
                                <span class="text-sm text-gray-600">较难 (1题)</span>
                            </div>
                        </div>
                    </div>

                    <div class="h-64">
                        <canvas id="difficultyChart"></canvas>
                    </div>
                </div>

                <!-- 题目列表 -->
                <div class="bg-white rounded-xl shadow-sm overflow-hidden mb-6">
                    <div class="divide-y divide-gray-100">
                        <!-- 题目1 -->
                        <div class="p-6 question-card">
                            <div class="flex items-start justify-between mb-4">
                                <div class="flex items-center">
                                    <span class="text-xs bg-blue-100 text-blue-600 px-2 py-0.5 rounded-full mr-2">选择题</span>
                                    <span class="text-xs bg-green-100 text-green-600 px-2 py-0.5 rounded-full mr-2">基础</span>
                                    <span class="text-xs bg-gray-100 text-gray-600 px-2 py-0.5 rounded-full">难度系数：0.85</span>
                                </div>
                                <div class="flex space-x-3">
                                    <button class="text-gray-400 hover:text-primary transition-colors" title="编辑题目">
                                        <i class="fa fa-pencil"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-warning transition-colors" title="复制题目">
                                        <i class="fa fa-copy"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-danger transition-colors" title="删除题目">
                                        <i class="fa fa-trash"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-primary transition-colors" title="查看详情">
                                        <i class="fa fa-angle-right"></i>
                                    </button>
                                </div>
                            </div>

                            <div class="mb-4">
                                <p class="text-gray-800 text-lg mb-2">1. 下列各组对象中不能构成集合的是（　　）</p>

                                <div class="pl-6 space-y-2 text-gray-700">
                                    <p>A. 北京尼山世界文明论坛的全体参会人员</p>
                                    <p>B. 2024年高考数学试卷中的所有难题</p>
                                    <p>C. 所有的正方形</p>
                                    <p>D. 清华大学2024年入学的全体学生</p>
                                </div>
                            </div>

                            <div class="bg-gray-50 p-4 rounded-lg">
                                <div class="flex items-center justify-between mb-2">
                                    <h4 class="font-medium text-gray-800">参考答案与解析</h4>
                                    <button class="text-primary text-sm hover:underline">编辑解析</button>
                                </div>

                                <div class="mb-3">
                                    <p class="text-gray-700"><span class="font-medium mr-1">答案：</span>B</p>
                                </div>

                                <div>
                                    <p class="text-gray-700 text-sm">
                                        <span class="font-medium mr-1">解析：</span>集合中的元素必须具有确定性，而"难题"的标准不明确，不具有确定性，因此不能构成集合。其他选项中的对象都具有明确的判定标准，可以构成集合。
                                    </p>
                                </div>
                            </div>

                            <div class="mt-4 flex items-center justify-between">
                                <div class="flex items-center text-sm text-gray-500">
                                    <span class="flex items-center mr-4"><i class="fa fa-eye mr-1"></i> 查看：1,254</span>
                                    <span class="flex items-center mr-4"><i class="fa fa-check-circle mr-1"></i> 正确率：87%</span>
                                    <span class="flex items-center"><i class="fa fa-calendar-o mr-1"></i> 2024-02-15</span>
                                </div>

                                <div class="flex items-center">
                                    <button class="text-sm text-gray-500 hover:text-primary transition-colors flex items-center mr-4">
                                        <i class="fa fa-thumbs-o-up mr-1"></i> 有用(24)
                                    </button>
                                    <button class="text-sm text-gray-500 hover:text-primary transition-colors flex items-center">
                                        <i class="fa fa-comment-o mr-1"></i> 评论(5)
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- 题目2 -->
                        <div class="p-6 question-card">
                            <div class="flex items-start justify-between mb-4">
                                <div class="flex items-center">
                                    <span class="text-xs bg-purple-100 text-purple-600 px-2 py-0.5 rounded-full mr-2">填空题</span>
                                    <span class="text-xs bg-yellow-100 text-yellow-600 px-2 py-0.5 rounded-full mr-2">中等</span>
                                    <span class="text-xs bg-gray-100 text-gray-600 px-2 py-0.5 rounded-full">难度系数：0.62</span>
                                </div>
                                <div class="flex space-x-3">
                                    <button class="text-gray-400 hover:text-primary transition-colors" title="编辑题目">
                                        <i class="fa fa-pencil"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-warning transition-colors" title="复制题目">
                                        <i class="fa fa-copy"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-danger transition-colors" title="删除题目">
                                        <i class="fa fa-trash"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-primary transition-colors" title="查看详情">
                                        <i class="fa fa-angle-right"></i>
                                    </button>
                                </div>
                            </div>

                            <div class="mb-4">
                                <p class="text-gray-800 text-lg mb-2">2. 用列举法表示集合M={m | m ∈ Z，且10/(m+1) ∈ Z} = ______．</p>
                            </div>

                            <div class="bg-gray-50 p-4 rounded-lg">
                                <div class="flex items-center justify-between mb-2">
                                    <h4 class="font-medium text-gray-800">参考答案与解析</h4>
                                    <button class="text-primary text-sm hover:underline">编辑解析</button>
                                </div>

                                <div class="mb-3">
                                    <p class="text-gray-700"><span class="font-medium mr-1">答案：</span>{-11, -6, -3, -2, 0, 1, 4, 9}</p>
                                </div>

                                <div>
                                    <p class="text-gray-700 text-sm">
                                        <span class="font-medium mr-1">解析：</span>本题可根据10能被(m+1)整除，找出所有满足条件的整数m。由题意可知，m+1是10的约数，10的约数有±1, ±2, ±5, ±10，因此对应的m值为-11, -6, -3, -2, 0, 1, 4, 9。
                                    </p>
                                </div>
                            </div>

                            <div class="mt-4 flex items-center justify-between">
                                <div class="flex items-center text-sm text-gray-500">
                                    <span class="flex items-center mr-4"><i class="fa fa-eye mr-1"></i> 查看：987</span>
                                    <span class="flex items-center mr-4"><i class="fa fa-check-circle mr-1"></i> 正确率：63%</span>
                                    <span class="flex items-center"><i class="fa fa-calendar-o mr-1"></i> 2024-01-28</span>
                                </div>

                                <div class="flex items-center">
                                    <button class="text-sm text-gray-500 hover:text-primary transition-colors flex items-center mr-4">
                                        <i class="fa fa-thumbs-o-up mr-1"></i> 有用(18)
                                    </button>
                                    <button class="text-sm text-gray-500 hover:text-primary transition-colors flex items-center">
                                        <i class="fa fa-comment-o mr-1"></i> 评论(3)
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- 题目3 -->
                        <div class="p-6 question-card">
                            <div class="flex items-start justify-between mb-4">
                                <div class="flex items-center">
                                    <span class="text-xs bg-red-100 text-red-600 px-2 py-0.5 rounded-full mr-2">解答题</span>
                                    <span class="text-xs bg-yellow-100 text-yellow-600 px-2 py-0.5 rounded-full mr-2">中等</span>
                                    <span class="text-xs bg-gray-100 text-gray-600 px-2 py-0.5 rounded-full">难度系数：0.58</span>
                                </div>
                                <div class="flex space-x-3">
                                    <button class="text-gray-400 hover:text-primary transition-colors" title="编辑题目">
                                        <i class="fa fa-pencil"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-warning transition-colors" title="复制题目">
                                        <i class="fa fa-copy"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-danger transition-colors" title="删除题目">
                                        <i class="fa fa-trash"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-primary transition-colors" title="查看详情">
                                        <i class="fa fa-angle-right"></i>
                                    </button>
                                </div>
                            </div>

                            <div class="mb-4">
                                <p class="text-gray-800 text-lg mb-2">3. 已知集合A={x | ax² - 3x + 2 = 0，a ∈ R}，若A中至多只有一个元素，求a的取值范围．</p>
                            </div>

                            <div class="bg-gray-50 p-4 rounded-lg">
                                <div class="flex items-center justify-between mb-2">
                                    <h4 class="font-medium text-gray-800">参考答案与解析</h4>
                                    <button class="text-primary text-sm hover:underline">编辑解析</button>
                                </div>

                                <div class="mb-3">
                                    <p class="text-gray-700"><span class="font-medium mr-1">答案：</span>a ≥ 9/8 或 a = 0</p>
                                </div>

                                <div>
                                    <p class="text-gray-700 text-sm">
                                        <span class="font-medium mr-1">解析：</span>本题可根据集合A中元素的个数，分情况讨论方程ax² - 3x + 2 = 0的解的情况。<br>
                                        ① 当a = 0时，方程化为-3x + 2 = 0，解得x = 2/3，此时A = {2/3}，满足题意；<br>
                                        ② 当a ≠ 0时，方程为一元二次方程，由题意可知其判别式Δ = 9 - 8a ≤ 0，解得a ≥ 9/8。<br>
                                        综上，a的取值范围是a ≥ 9/8 或 a = 0。
                                    </p>
                                </div>
                            </div>

                            <div class="mt-4 flex items-center justify-between">
                                <div class="flex items-center text-sm text-gray-500">
                                    <span class="flex items-center mr-4"><i class="fa fa-eye mr-1"></i> 查看：756</span>
                                    <span class="flex items-center mr-4"><i class="fa fa-check-circle mr-1"></i> 正确率：55%</span>
                                    <span class="flex items-center"><i class="fa fa-calendar-o mr-1"></i> 2024-03-10</span>
                                </div>

                                <div class="flex items-center">
                                    <button class="text-sm text-gray-500 hover:text-primary transition-colors flex items-center mr-4">
                                        <i class="fa fa-thumbs-o-up mr-1"></i> 有用(22)
                                    </button>
                                    <button class="text-sm text-gray-500 hover:text-primary transition-colors flex items-center">
                                        <i class="fa fa-comment-o mr-1"></i> 评论(7)
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- 题目4 -->
                        <div class="p-6 question-card">
                            <div class="flex items-start justify-between mb-4">
                                <div class="flex items-center">
                                    <span class="text-xs bg-blue-100 text-blue-600 px-2 py-0.5 rounded-full mr-2">选择题</span>
                                    <span class="text-xs bg-green-100 text-green-600 px-2 py-0.5 rounded-full mr-2">基础</span>
                                    <span class="text-xs bg-gray-100 text-gray-600 px-2 py-0.5 rounded-full">难度系数：0.92</span>
                                </div>
                                <div class="flex space-x-3">
                                    <button class="text-gray-400 hover:text-primary transition-colors" title="编辑题目">
                                        <i class="fa fa-pencil"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-warning transition-colors" title="复制题目">
                                        <i class="fa fa-copy"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-danger transition-colors" title="删除题目">
                                        <i class="fa fa-trash"></i>
                                    </button>
                                    <button class="text-gray-400 hover:text-primary transition-colors" title="查看详情">
                                        <i class="fa fa-angle-right"></i>
                                    </button>
                                </div>
                            </div>

                            <div class="mb-4">
                                <p class="text-gray-800 text-lg mb-2">4. 下列说法中正确的是（　　）</p>

                                <div class="pl-6 space-y-2 text-gray-700">
                                    <p>A. 某个村子里的年轻人组成一个集合</p>
                                    <p>B. 所有小正数组成一个集合</p>
                                    <p>C. 集合{1,2,3}与集合{3,2,1}表示同一个集合</p>
                                    <p>D. 这些数组成的集合有五个元素</p>
                                </div>
                            </div>

                            <div class="bg-gray-50 p-4 rounded-lg">
                                <div class="flex items-center justify-between mb-2">
                                    <h4 class="font-medium text-gray-800">参考答案与解析</h4>
                                    <button class="text-primary text-sm hover:underline">编辑解析</button>
                                </div>

                                <div class="mb-3">
                                    <p class="text-gray-700"><span class="font-medium mr-1">答案：</span>C</p>
                                </div>

                                <div>
                                    <p class="text-gray-700 text-sm">
                                        <span class="font-medium mr-1">解析：</span>根据集合中元素的确定性和无序性进行判断。A、B选项中的"年轻人"、"小正数"标准不明确，不具有确定性，不能构成集合；C选项满足集合中元素的无序性，正确；D选项中含有相同元素，根据互异性，应只有3个元素。
                                    </p>
                                </div>
                            </div>

                            <div class="mt-4 flex items-center justify-between">
                                <div class="flex items-center text-sm text-gray-500">
                                    <span class="flex items-center mr-4"><i class="fa fa-eye mr-1"></i> 查看：1,087</span>
                                    <span class="flex items-center mr-4"><i class="fa fa-check-circle mr-1"></i> 正确率：91%</span>
                                    <span class="flex items-center"><i class="fa fa-calendar-o mr-1"></i> 2024-02-05</span>
                                </div>

                                <div class="flex items-center">
                                    <button class="text-sm text-gray-500 hover:text-primary transition-colors flex items-center mr-4">
                                        <i class="fa fa-thumbs-o-up mr-1"></i> 有用(15)
                                    </button>
                                    <button class="text-sm text-gray-500 hover:text-primary transition-colors flex items-center">
                                        <i class="fa fa-comment-o mr-1"></i> 评论(2)
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- 分页 -->
                    <div class="p-4 border-t border-gray-100 flex items-center justify-center">
                        <div class="flex space-x-1">
                            <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-gray-200 text-gray-500 hover:border-primary hover:text-primary disabled:opacity-50" disabled>
                                <i class="fa fa-angle-left"></i>
                            </button>
                            <button class="w-10 h-10 flex items-center justify-center rounded-lg bg-primary text-white">1</button>
                            <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-gray-200 text-gray-700 hover:border-primary hover:text-primary">2</button>
                            <button class="w-10 h-10 flex items-center justify-center rounded-lg border border-gray-200 text-gray-700 hover:border-primary hover:text-primary">
                                <i class="fa fa-angle-right"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- 页脚 -->
    <footer class="bg-white border-t border-gray-200 py-4">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="text-center md:text-left mb-4 md:mb-0">
                    <p class="text-sm text-gray-500">© 2025 教材资源管理系统. 保留所有权利.</p>
                </div>

                <div class="flex space-x-6">
                    <a href="#" class="text-gray-500 hover:text-primary transition-colors">
                        <i class="fa fa-question-circle mr-1"></i> 帮助中心
                    </a>
                    <a href="#" class="text-gray-500 hover:text-primary transition-colors">
                        <i class="fa fa-file-text-o mr-1"></i> 使用条款
                    </a>
                    <a href="#" class="text-gray-500 hover:text-primary transition-colors">
                        <i class="fa fa-shield mr-1"></i> 隐私政策
                    </a>
                </div>
            </div>
        </div>
    </footer>

    <!-- JavaScript -->
    <script>
        // 侧边栏切换
        document.getElementById('sidebar-toggle').addEventListener('click', function() {
            const sidebar = document.getElementById('sidebar');
            sidebar.classList.toggle('-translate-x-full');
        });

        // 章节展开/收起
        document.querySelectorAll('.chapter-item > div:first-child').forEach(item => {
            item.addEventListener('click', function() {
                const content = this.nextElementSibling;
                const icon = this.querySelector('i:last-child');

                content.classList.toggle('hidden');
                if (content.classList.contains('hidden')) {
                    icon.classList.remove('fa-angle-down');
                    icon.classList.add('fa-angle-right');
                } else {
                    icon.classList.remove('fa-angle-right');
                    icon.classList.add('fa-angle-down');
                }
            });
        });

        // 展开/收起所有章节
        document.getElementById('expand-all').addEventListener('click', function() {
            document.querySelectorAll('.chapter-item > div:first-child').forEach(item => {
                const content = item.nextElementSibling;
                const icon = item.querySelector('i:last-child');

                content.classList.remove('hidden');
                icon.classList.remove('fa-angle-right');
                icon.classList.add('fa-angle-down');
            });
        });

        document.getElementById('collapse-all').addEventListener('click', function() {
            document.querySelectorAll('.chapter-item > div:first-child').forEach(item => {
                const content = item.nextElementSibling;
                const icon = item.querySelector('i:last-child');

                content.classList.add('hidden');
                icon.classList.remove('fa-angle-down');
                icon.classList.add('fa-angle-right');
            });
        });

        // 难度分布图表
        document.addEventListener('DOMContentLoaded', function() {
            const ctx = document.getElementById('difficultyChart').getContext('2d');
            const difficultyChart = new Chart(ctx, {
                type: 'bar',
                data: {
                    labels: ['基础', '中等', '较难'],
                    datasets: [{
                        label: '题目数量',
                        data: [4, 3, 1],
                        backgroundColor: [
                            '#00B42A',
                            '#FF7D00',
                            '#F53F3F'
                        ],
                        borderWidth: 0,
                        borderRadius: 6,
                        barThickness: 40
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    plugins: {
                        legend: {
                            display: false
                        },
                        tooltip: {
                            callbacks: {
                                label: function(context) {
                                    return `题目数量: ${context.raw}题`;
                                }
                            }
                        }
                    },
                    scales: {
                        y: {
                            beginAtZero: true,
                            ticks: {
                                precision: 0
                            }
                        }
                    }
                }
            });

            // 题目卡片动画
            const questionCards = document.querySelectorAll('.question-card');

            questionCards.forEach((card, index) => {
                card.style.opacity = '0';
                card.style.transform = 'translateY(20px)';
                card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';

                setTimeout(() => {
                    card.style.opacity = '1';
                    card.style.transform = 'translateY(0)';
                }, index * 100);
            });
        });
    </script>
</body>
</html>
